package com.example.rbacmanage.controller.app;

import com.example.rbacmanage.common.Result;
import com.example.rbacmanage.entity.app.Activity;
import com.example.rbacmanage.exception.MyException;
import com.example.rbacmanage.service.app.ActivityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/app/activity")
public class ActivityAppController {
    @Autowired
    private ActivityService activityService;

    @GetMapping("/list")
    public Result list(Activity activity){
        return Result.success(activityService.getAll(activity));
    }

}
